//
//  HelpTableViewCell.m
//  ChartsDemo
//
//  Created by wusiping on 2021/4/2.
//

#import "HelpTableViewCell.h"

@interface HelpTableViewCell ()

@property (nonatomic,strong) UILabel *label;

@end

@implementation HelpTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self  = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self UIConfig];
    }
    return self;
}

- (void)UIConfig
{
    [self addSubview:self.label];
    [_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(10);
        make.bottom.mas_equalTo(-10);
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
    }];
}

- (UILabel *)label
{
    if (!_label) {
        _label = [[UILabel alloc] init];
        _label.numberOfLines = 0;
    }
    return _label;
}

- (void)configCellWithText:(NSString *)text textAlignment:(NSTextAlignment)textAlignment font:(UIFont *)font
{
    _label.textAlignment = textAlignment;
    _label.text = text;
    _label.font = font;
}

@end
